<include file="public:header" />
<!--版本列表-->
<div class="pad_lr_10" >
    <form name="searchform" method="get" >
    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
        <tr>
            <td>
            <div class="explain_col">
                <input type="hidden" name="g" value="admin" />
                <input type="hidden" name="m" value="version" />
                <input type="hidden" name="a" value="index" />
                <input type="hidden" name="menuid" value="{$menuid}" />
                更新时间：
                <input type="text" name="time_start" id="time_start" class="date" size="12" value="{$search.time_start}">
                -
                <input type="text" name="time_end" id="time_end" class="date" size="12" value="{$search.time_end}">
                &nbsp;&nbsp;{:L('keyword')} :
                <input name="keyword" type="text" class="input-text" size="25" value="{$search.keyword}" />
                
                <input type="submit" name="search" class="btn" value="{:L('search')}" />
            </div>
            </td>
        </tr>
        </tbody>
    </table>
    </form>

    <div class="J_tablelist table_list" data-acturi="{:U('version/ajax_edit')}">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                      
                <th align="center"><span data-tdtype="order_by" data-field="name">版本名称</span></th>
                
                <th>下载地址</th>
                <th><span data-tdtype="order_by" data-field="updateTime">更新时间</span></th>    
                
                <th width=150><span data-tdtype="order_by" data-field="version">版本号</span></th>
                 
				<th width=150><span data-tdtype="order_by" data-field="addUser">添加者</span></th>    

                <th width="80">{:L('operations_manage')}</th>
            </tr>
        </thead>
        <tbody>
            <volist name="list" id="val" >
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
               
                
                <td align="center">
                    <span data-tdtype="edit" data-field="name" data-id="{$val.id}" class="tdedit">{$val.name}</span>
                </td>
                <td align="center">{$val.downLoad}</td>  
                <td align="center">{$val.updateTime|date='Y-m-d H:i:s',###}</td>
                <td align="center"><span data-tdtype="edit" data-field="version" data-id="{$val.id}" class="tdedit">{$val.version}</span></td>
                <td align="center">{$val.realName}</td>  
                <td align="center">
                <a  href="javascript:void(0);" class="J_showdialog" data-acttype="ajax" data-uri="{:u('version/oppt', array('id'=>$val['id'], 'menuid'=>$menuid,'opttype'=>'edit'))}"  data-title="{:L('edit')} - {$val.name}"  data-id="edit" data-width="500" data-height="200">{:L('edit')}</a>
                 | <a href="javascript:void(0);" class="J_confirmurl" data-acttype="ajax" data-uri="{:u('version/delete', array('id'=>$val['id']))}" data-msg="{:sprintf(L('confirm_delete_one'),$val['name'])}">{:L('delete')}</a></td>
            </tr>
            </volist>
        </tbody>
    </table>

    <div class="btn_wrap_fixed">
        <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>
        <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('version/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />
        <div id="pages">{$page}</div>
    </div>

    </div>
</div>
<include file="public:footer" />
<link rel="stylesheet" type="text/css" href="__STATIC__/js/calendar/calendar-blue.css"/>
<script src="__STATIC__/js/calendar/calendar.js"></script>
<script>


Calendar.setup({
    inputField : "time_start",
    ifFormat   : "%Y-%m-%d",
    showsTime  : false,
    timeFormat : "24"
});
Calendar.setup({
    inputField : "time_end",
    ifFormat   : "%Y-%m-%d",
    showsTime  : false,
    timeFormat : "24"
});
</script>
</body>
</html>
